<?php if (!defined('THINK_PATH')) exit();?><!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
        "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
    <title>ECSHOP 管理中心 - <?php echo ($meta_title); ?> </title>
    <meta name="robots" content="noindex, nofollow">
    <meta http-equiv="Content-Type" content="text/html; charset=utf-8"/>
    <link href="/Public/css/general.css" rel="stylesheet" type="text/css"/>
    <link href="/Public/css/main.css" rel="stylesheet" type="text/css"/>
    <script src="/Public/js/jquery-1.11.3.js"></script>

    
    
    <!--引入datajs控件-->
    <script src="/Public/ext/datajs/WdatePicker.js"></script>

</head>
<body>

    <h1>
        <span class="action-span1"><a href="<?php echo U('index');?>">文章分类</a></span>
        <span id="search_id" class="action-span1"> - <?php echo ($meta_title); ?> </span>
        <div style="clear:both"></div>
    </h1>
    <div class="main-div">
        <form method="post" action="<?php echo U();?>"enctype="multipart/form-data" >
            <table cellspacing="1" cellpadding="3" width="100%">
                <tr>
                    <td class="label">文章名称</td>
                    <td>
                        <input type="text" name="name" maxlength="60" value="" />
                        <span class="require-field">*</span>
                    </td>
                </tr>
                <tr>
                    <td class="label">文章分类</td>
                    <td>
                        <select name="article_category_id">
                            <?php if(is_array($ArticleCategory)): foreach($ArticleCategory as $key=>$row): ?><option value="<?php echo ($row[id]); ?>"><?php echo ($row['name']); ?></option><?php endforeach; endif; ?>
                        </select>
                    </td>
                </tr>
                <tr>
                    <td class="label">文章简介</td>
                    <td>
                        <textarea  name="intro" cols="50" rows="1"  ></textarea>
                    </td>
                </tr>
                <tr>
                    <td class="label">文章内容</td>
                    <td>
                        <textarea  name="content" cols="60" rows="5"  ></textarea>
                    </td>
                </tr>
                <tr>
                    <td class="label">排序</td>
                    <td>
                        <input type="text" name="sort" maxlength="40" size="15" value="" />
                    </td>
                </tr>
                <tr>
                    <td class="label">是否显示</td>
                    <td>
                        <input type="radio" name="status" value="1" checked="checked" /> 是
                        <input type="radio" name="status" value="0"  /> 否
                    </td>
                </tr>
                <tr>
                    <td class="label">选择发布时间</td>
                    <td><input name="inputtime" type="text" onclick="WdatePicker()"></td>
                    </td>
                </tr>
                <tr>
                    <td colspan="2" align="center"><br />
                        <input type="submit" class="button" value=" 确定 " />
                        <input type="reset" class="button" value=" 重置 " />
                    </td>
                </tr>
            </table>
        </form>
    </div>

<div id="footer">
    共执行 <?php echo N('db_query');?> 个查询，用时 <?php echo G('loadTime','initTime');?> 秒，Gzip 已禁用，内存占用 <?php echo number_format((memory_get_usage() - $GLOBALS['_startUseMems'])/1024);?> KB<br/>
    版权所有 &copy; 重庆京西商城，并保留所有权利。
</div>
</body>
</html>